var express = require('express');
var router = express.Router();
var db = require('../bin/db');


router.get('/', function(req, res, next) {
    var authkey = req.query.authkey;
    var key = req.query.key;
    var value = req.query.value;
    db.pool.getConnection(function (err, client) {
        var sql = "UPDATE users set "+key+" = '"+value+"' where authkey = '"+authkey+"'";
        client.query(sql, function (err, rows) {

        })
    });
    res.send('r这里是修改');
});

module.exports = router;
